				<div class="information box">
					<h1 style="background-color:#<?php echo $category->color ?>">
						<img src="uploads/icon/head/<?php echo $category->image ?>" />
						<span><?php echo $category->name ?></span>
						<div class="rss"><a href="contents/rss"><img src="media/images/rss.png"> RSS</a></div>
						<a class="more" href="contents/index/<?php echo $category->id ?>">ดูทั้งหมด</a>
						<div class="corner_left"></div>
						<div class="corner_right"></div>
					</h1>
					<ul>
						<?php foreach($contents as $key => $content): ?>
						<?php if($key==0): ?>
						<li class="large">
							<?php if($content->url): ?>
							<a target="_blank" href="<?php echo $content->url ?>">
							<?php else: ?>
							<a href="contents/view/<?php echo $content->id ?>">
							<?php endif; ?>
								<?php if(is_file('uploads/content/thumbnail/'.$content->image)): ?>
								<img src="uploads/content/thumbnail/<?php echo $content->image ?>" />
								<?php else: ?>
								<img src="uploads/default/moph_logo.png" />
								<?php endif; ?>
								<h2><?php echo $content->title ?></h2>
								<p><?php echo $content->intro ?></p>
							</a>
						</li>
						<?php else: ?>
						<li>
							<?php if($content->url): ?>
							<a target="_blank" href="<?php echo $content->url ?>">
							<?php else: ?>
							<a href="contents/view/<?php echo $content->id ?>">
							<?php endif; ?>
								<?php if(is_file('uploads/content/thumbnail/small/'.$content->image)): ?>
								<img src="uploads/content/thumbnail/small/<?php echo $content->image ?>" />
								<?php else: ?>
								<img src="uploads/default/moph_logo_small.png" />
								<?php endif; ?>
								<h2><?php echo $content->title ?></h2>
								<p><?php echo $content->intro ?></p>
							</a>
						</li>
						<?php endif; ?>
						<?php endforeach; ?>
						<div class="clear"></div>
					</ul>
				</div>